package com.ys.entity.flow;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YSP_Model", catalog="Id")
public class YspModel extends BaseEntity<YspModel> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="VersionLatest", nameJava="versionLatest", typeDataBase="int")
	private Integer versionLatest;
	@YsField(nameDataBase="Info", nameJava="info", typeDataBase="text")
	private String info;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YspModel setId(Long id) {
		this.id = id;
		return this;
	}
	public String getCode() {
		return code;
	}
	public YspModel setCode(String code) {
		this.code = code;
		return this;
	}
	public String getName() {
		return name;
	}
	public YspModel setName(String name) {
		this.name = name;
		return this;
	}
	public Integer getVersionLatest() {
		return versionLatest;
	}
	public YspModel setVersionLatest(Integer versionLatest) {
		this.versionLatest = versionLatest;
		return this;
	}
	public String getInfo() {
		return info;
	}
	public YspModel setInfo(String info) {
		this.info = info;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YspModel setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YspModel setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YspModel setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YspModel yspModel(
		String code,
		String name,
		Integer versionLatest,
		String info,
		Integer status
			) {
		YspModel entity = new YspModel();
		entity.setCode(code);
		entity.setName(name);
		entity.setVersionLatest(versionLatest);
		entity.setInfo(info);
		entity.setStatus(status);
		return entity;
	}
}